package com.wrial.mall.product.web.controller;
/*
 * @Author  Wrial
 * @Date Created in 10:49 2020/6/13
 * @Description 商品详情Controller
 */

import com.wrial.mall.product.service.SkuImagesService;
import com.wrial.mall.product.service.SkuInfoService;
import com.wrial.mall.product.vo.SkuItemVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class ItemController {

    @Autowired
    SkuInfoService skuInfoService;

    @GetMapping("/{skuId}.html")
    public String skuImg(@PathVariable("skuId") Long skuId) {
        System.out.println("查询" + skuId + "详情");
        SkuItemVo itemVo = skuInfoService.item(skuId);
        return "item";
    }
}
